package com.hz.ruoyistorage.api;

import com.hz.ruoyistorage.domain.LgSubCold;
import com.hz.ruoyistorage.mapper.LgSubColdMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * @Author gj
 * @Date 2025/3/24 18:46
 * @注释
 */
//给郭瑞祥的api
@RestController
@RequestMapping("/api4")
public class SubColdCreateBy {
    @Autowired
    private LgSubColdMapper lgSubColdMapper;


    @PostMapping("/getCreateBy")
    public String getCreateBy(@RequestParam("subId") Integer subId)
    {
        LgSubCold lgSubCold = lgSubColdMapper.selectById(subId);
        String createBy = lgSubCold.getCreateBy();
        return createBy;
    }

}
